<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>RobotPlc: E:/RobotProgram/RobotPLC/PlcMainLogic/plc_main_logic_interface.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">RobotPlc
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_50bf711fd17fdbedc49a7625ceec0204.html">RobotPLC</a></li><li class="navelem"><a class="el" href="dir_0a20319a72913b6ade4bdf51f688abcf.html">PlcMainLogic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">plc_main_logic_interface.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="plc__main__logic__interface_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef PLC_MAIN_LOGIC_INTERFACE_H</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define PLC_MAIN_LOGIC_INTERFACE_H</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;plc_struct_define.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifdef PLCMAINLOGIC_LIB</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor"># define PlcMainLogicApi extern &quot;C&quot; __declspec(dllexport) //Q_DECL_EXPORT</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"># define PlcMainLogicApi extern &quot;C&quot; __declspec(dllimport)   //Q_DECL_IMPORT</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">namespace </span>CPlcControl</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#a2508c226e9efd400ce9b28e9a3bf0d9b">PlcMainLogic</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    PlcMainLogicApi <span class="keywordtype">void</span> <a class="code" href="plc__main__logic__interface_8h.html#a8e4f486a474c32ab3ebe07d64985c276">deleteInstance</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    PlcMainLogicApi <span class="keywordtype">void</span> <a class="code" href="plc__main__logic__interface_8h.html#af4003198c0e2f50c665c6edfa7a0228e">initIO</a>();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    PlcMainLogicApi <span class="keywordtype">void</span> <a class="code" href="plc__main__logic__interface_8h.html#a8b4284aedf859489e4ca0e08ae763d61">addCommandList</a>(CommandDetail *cmd);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#a7379a25c557a5da10c9e106579593d37">getRobotTeachMode</a>(<span class="keywordtype">int</span> group = 0);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#a493983d19185f79916d94493cc9a8760">getRobotTeachNcStatus</a>(<span class="keywordtype">int</span> group = 0);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#aa40a6a9018e973fe32ed4a12fce24829">getRobotReplayNcStatus</a>(<span class="keywordtype">int</span> group = 0);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#a7363518caa1dba0f91f8201dd2cd5ad1">getRobotServoStatus</a>(<span class="keywordtype">int</span> group = 0);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a6ad1a609832fe5d4120c3fc29045e28c">getRobotAlarmStatus</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a96ee28b6f94725e5ab7e54d64c61ce46">getRobotHmiEstop</a>();</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a97671df3e3341c1f933348de07cb83b9">getRobotExternalEstop</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a592e8650e26322cbe6f134fd71f48d58">getRobotEstop</a>();</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a4aba11e4aa20d49744b1e57988ca3891">getRobotCrashCheckStatus</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a1c95e74faf904bbd475dceabb868ebdc">getRobotSafeDoorStatus</a>();</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    PlcMainLogicApi <span class="keywordtype">bool</span> <a class="code" href="plc__main__logic__interface_8h.html#a2dbd9a8970c094104e386b81cecb909d">getRobotHmiServoSwitch</a>();</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#a162dea8821d5c43cb5b68ce5566fcfd7">setCurrentGroupNum</a>(<span class="keywordtype">int</span> group = 0);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    PlcMainLogicApi <span class="keywordtype">int</span> <a class="code" href="plc__main__logic__interface_8h.html#afcf46aaa8776670229d5b4d9ae0593d9">getCurrentGroupNum</a>();</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;}</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#endif // PLC_MAIN_LOGIC_INTERFACE_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aplc__main__logic__interface_8h_html_a8b4284aedf859489e4ca0e08ae763d61"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a8b4284aedf859489e4ca0e08ae763d61">CPlcControl::addCommandList</a></div><div class="ttdeci">PlcMainLogicApi void addCommandList(CommandDetail *cmd)</div><div class="ttdoc">添加外部命令进入PLC线程指令流，执行IO、系统级操作。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:21</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a7379a25c557a5da10c9e106579593d37"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a7379a25c557a5da10c9e106579593d37">CPlcControl::getRobotTeachMode</a></div><div class="ttdeci">PlcMainLogicApi int getRobotTeachMode(int group=0)</div><div class="ttdoc">获取机器人组的当前操作模式。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:28</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_aa40a6a9018e973fe32ed4a12fce24829"><div class="ttname"><a href="plc__main__logic__interface_8h.html#aa40a6a9018e973fe32ed4a12fce24829">CPlcControl::getRobotReplayNcStatus</a></div><div class="ttdeci">PlcMainLogicApi int getRobotReplayNcStatus(int group=0)</div><div class="ttdoc">获取回放模式下，机器人NC状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:42</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a2dbd9a8970c094104e386b81cecb909d"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a2dbd9a8970c094104e386b81cecb909d">CPlcControl::getRobotHmiServoSwitch</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotHmiServoSwitch()</div><div class="ttdoc">获取机器人示教器三段开关状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:86</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_af4003198c0e2f50c665c6edfa7a0228e"><div class="ttname"><a href="plc__main__logic__interface_8h.html#af4003198c0e2f50c665c6edfa7a0228e">CPlcControl::initIO</a></div><div class="ttdeci">PlcMainLogicApi void initIO()</div><div class="ttdoc">反同步DO到Y变量。系统级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:16</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_afcf46aaa8776670229d5b4d9ae0593d9"><div class="ttname"><a href="plc__main__logic__interface_8h.html#afcf46aaa8776670229d5b4d9ae0593d9">CPlcControl::getCurrentGroupNum</a></div><div class="ttdeci">PlcMainLogicApi int getCurrentGroupNum()</div><div class="ttdoc">获取当前的控制组号。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:98</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a97671df3e3341c1f933348de07cb83b9"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a97671df3e3341c1f933348de07cb83b9">CPlcControl::getRobotExternalEstop</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotExternalEstop()</div><div class="ttdoc">获取机器人外部急停状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:66</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a2508c226e9efd400ce9b28e9a3bf0d9b"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a2508c226e9efd400ce9b28e9a3bf0d9b">CPlcControl::PlcMainLogic</a></div><div class="ttdeci">PlcMainLogicApi int PlcMainLogic()</div><div class="ttdoc">系统PLC主逻辑循环执行接口。系统级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:4</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a4aba11e4aa20d49744b1e57988ca3891"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a4aba11e4aa20d49744b1e57988ca3891">CPlcControl::getRobotCrashCheckStatus</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotCrashCheckStatus()</div><div class="ttdoc">获取机器人碰撞检测状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:76</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a493983d19185f79916d94493cc9a8760"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a493983d19185f79916d94493cc9a8760">CPlcControl::getRobotTeachNcStatus</a></div><div class="ttdeci">PlcMainLogicApi int getRobotTeachNcStatus(int group=0)</div><div class="ttdoc">获取试教模式下，机器人NC状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:35</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a592e8650e26322cbe6f134fd71f48d58"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a592e8650e26322cbe6f134fd71f48d58">CPlcControl::getRobotEstop</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotEstop()</div><div class="ttdoc">获取机器人急停状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:71</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a6ad1a609832fe5d4120c3fc29045e28c"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a6ad1a609832fe5d4120c3fc29045e28c">CPlcControl::getRobotAlarmStatus</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotAlarmStatus()</div><div class="ttdoc">获取机器人报警状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:56</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a96ee28b6f94725e5ab7e54d64c61ce46"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a96ee28b6f94725e5ab7e54d64c61ce46">CPlcControl::getRobotHmiEstop</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotHmiEstop()</div><div class="ttdoc">获取机器人试教急停状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:61</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a162dea8821d5c43cb5b68ce5566fcfd7"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a162dea8821d5c43cb5b68ce5566fcfd7">CPlcControl::setCurrentGroupNum</a></div><div class="ttdeci">PlcMainLogicApi int setCurrentGroupNum(int group=0)</div><div class="ttdoc">设置当前的控制组号。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:91</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a7363518caa1dba0f91f8201dd2cd5ad1"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a7363518caa1dba0f91f8201dd2cd5ad1">CPlcControl::getRobotServoStatus</a></div><div class="ttdeci">PlcMainLogicApi int getRobotServoStatus(int group=0)</div><div class="ttdoc">获取机器人伺服状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:49</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a1c95e74faf904bbd475dceabb868ebdc"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a1c95e74faf904bbd475dceabb868ebdc">CPlcControl::getRobotSafeDoorStatus</a></div><div class="ttdeci">PlcMainLogicApi bool getRobotSafeDoorStatus()</div><div class="ttdoc">获取机器人工作站安全门状态。用户级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:81</div></div>
<div class="ttc" id="aplc__main__logic__interface_8h_html_a8e4f486a474c32ab3ebe07d64985c276"><div class="ttname"><a href="plc__main__logic__interface_8h.html#a8e4f486a474c32ab3ebe07d64985c276">CPlcControl::deleteInstance</a></div><div class="ttdeci">PlcMainLogicApi void deleteInstance()</div><div class="ttdoc">删除系统PLC接口。系统级函数接口</div><div class="ttdef"><b>Definition:</b> plc_main_logic_interface.cpp:11</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
